package edu.fjnu.order.model;

import java.math.BigDecimal;
import java.sql.Timestamp;


/**
 * 员工类
 * @author Y_x
 */
public class Employee {
	/*
	 * 员工号
	 */
	private String no;
	
	/*
	 * 员工姓名
	 */
	private String name;
	
	/*
	 * 性别
	 */
	private String sex;
	
	/*
	 * 出生日期
	 */
	private Timestamp birthday;
	
	/*
	 * 地址
	 */
	private String address;
	
	/*
	 * 电话
	 */
	private String telephone;
	
	/*
	 * 雇佣日期
	 */
	private Timestamp hireDate;
	
	/*
	 * 所属部门
	 */
	private String department;
	
	/*
	 * 职务
	 */
	private String headShip;
	
	/*
	 * 薪水
	 */
	private BigDecimal salary;

	@Override
	public String toString() {
		return name;
	}
	

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}


	public Timestamp getBirthday() {
		return birthday;
	}

	public void setBirthday(Timestamp birthday) {
		this.birthday = birthday;
	}
	

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}


	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	
	public Timestamp getHireDate() {
		return hireDate;
	}

	public void setHireDate(Timestamp hireDate) {
		this.hireDate = hireDate;
	}


	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}


	public String getHeadShip() {
		return headShip;
	}

	public void setHeadShip(String headShip) {
		this.headShip = headShip;
	}


	public BigDecimal getSalary() {
		return salary;
	}

	public void setSalary(BigDecimal salary) {
		this.salary = salary;
	}

	public Employee() {
		no = "";
		name = "";
		sex = "";
		birthday = Timestamp.valueOf("1970-01-01 00:00:00");
		address = "";
		telephone = "";
		hireDate = Timestamp.valueOf("1970-01-01 00:00:00");
		department = "";
		headShip = "";
		salary = new BigDecimal(0);
	}
}
